package com.novel.frame.yf;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.Connection;
import java.sql.SQLException;
import java.awt.Image;

import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.plaf.synth.SynthStyle;

import org.apache.commons.dbutils.QueryRunner;

import com.novel.bean.Book;
import com.novel.bean.User;
import com.novel.db.BaseDao;
import com.novel.db.DBPool;
import com.novel.frame.lgw.Notice;
import com.novel.frame.lgw.NovelRead;
import com.novel.frame.lgw.StackRoom;
import com.novel.frame.lxf.FirstPage_Jpanel;
import com.novel.frame.lxf.Login_Panel;
import com.novel.frame.lxf.Register_Jpanel;
import com.novel.frame.wxl.ClickLaterFrame;
import com.novel.frame.wxl.RankingFrame;
import com.novel.frame.wxl.WelfareFrame;

public class Person_center extends JFrame{
	private static final long serialVersionUID = 1L;

	private JFrame jf;
	//大面板
	private JScrollPane sp_all;//总的滚动面板
	private JPanel jp_all;//总面板
	private JPanel jp_north;//上部面板
	private JPanel jp_center;//中部面板
	private JPanel jp_south;//下部面板
	
	//==================================================
	//上部面板
	private JPanel jp_north_north;//上部面板
	private JPanel jp_north_center;//中部面板
	private JPanel jp_north_south;//下部面板
	
	//**************************************************************
	//**************************************************************
	//上部面板内容
	private JLabel lb_north_north_boy;//书海男生网标签
	private JLabel lb_north_north_literature;//书海文学网标签
	private JLabel lb_north_north_anime;//书海动漫网标签
	private JLabel lb_north_north_login;//注册标签
	private JLabel lb_north_north_land;//登陆标签
	private JLabel lb_north_north_help;//帮助标签
	private JLabel lb_north_north_client;//客户端标签
	
	//**************************************************************
	//**************************************************************
	//中部面板的内容
	private JLabel lb_north_center_title;//书海图片标签
	private JLabel lb_north_center_hotsearch;//热搜标签
	private JLabel lb_north_center_novel1;//热搜小说1
	private JLabel lb_north_center_novel2;//热搜小说2
	private JLabel lb_north_center_novel3;//热搜小说3
	private JTextField tf_search;//搜索框
	private JPanel jp_north_center_search;//搜索面板
	private JLabel lb_north_center_search;//搜索标签
	private JLabel lb_north_center_recharge;//充值标签
	private JLabel lb_north_center_authorcenter;//作家中心
	private JLabel lb_north_center_email;//邮箱图标
	private JLabel lb_north_center_myself;//自己图标
	
	//**************************************************************
	//**************************************************************
	//下部面板
	private JLabel lb_north_south_homepage;//首页
	private JLabel lb_north_south_01;
	private JLabel lb_north_south_library;//书库
	private JLabel lb_north_south_02;
	private JLabel lb_north_south_ranking;//排行
	private JLabel lb_north_south_03;
	private JLabel lb_north_south_IP;//IP专区
	private JLabel lb_north_south_04;
	private JLabel lb_north_south_authorwelfare;//作家福利
	private JLabel lb_north_south_05;
	private JLabel lb_north_south_notice;//公告资讯
	private JLabel lb_north_south_06;
	private JLabel lb_north_south_boyzone;//男生专区
	private JLabel lb_north_south_07;
	private JLabel lb_north_south_mylibrary;//我的书架
	
	
	//==================================================
	//===================中部面板组件==============================
	//**************************************************************
	//左部面板
	private JPanel jp_center_west;//左部面板
	private JPanel jp_center_west_north;//左部面板的上部面板
	private JLabel lb_center_west_north_myhomepage;//我的主页标签
	private JPanel jp_center_west_center;//左部面板的中部面板
	private JLabel lb_center_west_center_accontManager;//账号管理
	private JLabel lb_center_west_center_myselfMsg;//个人资料
	private JLabel lb_center_west_center_passwordAndSecurity;//密码和安全
	private JLabel lb_center_west_center_mylibrary;//我的书海
	private JLabel lb_center_west_center_mybooks;//我的书架
	private JLabel lb_center_west_center_myriview;//我的书评
	private JLabel lb_center_west_center_shortMsg;//短消息
	private JLabel lb_center_west_center_VIPpower;//会员特权
	private JLabel lb_center_west_center_applyAuthor;//申请作者
	
	//**************************************************************
	//**************************************************************
	//简要信息面板
	private JPanel jp_center_simpleMsg;//简要信息面板
	private JPanel jp_center_simpleMsg_west;//左部面板
	private JPanel jp_center_simpleMsg_center;//中部面板
	private JPanel jp_center_simpleMsg_east;//右部面板
	private JLabel lb_center_simpleMsg_west_headPic;//头像图片
	private JLabel lb_center_simpleMsg_west_username;//用户名称
	private JLabel lb_center_simpleMsg_center_balance;//余额图片
	private JLabel lb_center_simpleMsg_east_myselfMsg;//个人资料
	private JLabel lb_center_simpleMsg_east_applyAuthor;//申请作者
	
	//**************************************************************
	//**************************************************************
	//我的书架面板
	private JPanel jp_center_mylibrary;//我的书架面板
	private JPanel jp_center_mylibrary_north;//上部面板
	private JPanel jp_center_mylibrary_center;//中部面板
	private JLabel lb_center_mylibrary_north_mybook;//标签
	private JLabel lb_center_mylibrary_north_searchmore;//查看更多标签
	private JPanel jp_center_mylibrary_center_book01;//第一个书籍面板
	private JLabel lb_center_mylibrary_center_book01_bookImg;//书籍标签
	private JLabel lb_center_mylibrary_center_book01_bookName;//书名
	private JLabel lb_center_mylibrary_center_book01_bookAuthor;//作者
	private JLabel lb_center_mylibrary_center_book01_bookChapter;//章节
	private JLabel lb_center_mylibrary_center_book01_bookUpdatetime;//更新时间
	
	private JPanel jp_center_mylibrary_center_book02;//第二个书籍面板
	private JLabel lb_center_mylibrary_center_book02_bookImg;//书籍标签
	private JLabel lb_center_mylibrary_center_book02_bookName;//书名
	private JLabel lb_center_mylibrary_center_book02_bookAuthor;//作者
	private JLabel lb_center_mylibrary_center_book02_bookChapter;//章节
	private JLabel lb_center_mylibrary_center_book02_bookUpdatetime;//更新时间
	
	private JPanel jp_center_mylibrary_center_book03;//第三个书籍面板
	private JLabel lb_center_mylibrary_center_book03_bookImg;//书籍标签
	private JLabel lb_center_mylibrary_center_book03_bookName;//书名
	private JLabel lb_center_mylibrary_center_book03_bookAuthor;//作者
	private JLabel lb_center_mylibrary_center_book03_bookChapter;//章节
	private JLabel lb_center_mylibrary_center_book03_bookUpdatetime;//更新时间
	
	private JPanel jp_center_mylibrary_center_book04;//第四个书籍面板
	private JLabel lb_center_mylibrary_center_book04_bookImg;//书籍标签
	private JLabel lb_center_mylibrary_center_book04_bookName;//书名
	private JLabel lb_center_mylibrary_center_book04_bookAuthor;//作者
	private JLabel lb_center_mylibrary_center_book04_bookChapter;//章节
	private JLabel lb_center_mylibrary_center_book04_bookUpdatetime;//更新时间

	//**************************************************************
	//**************************************************************
	//最近阅读面板
	private JPanel jp_center_renctlyRead;//最近阅读总面板
	private JPanel jp_center_renctlyRead_north;//上部面板
	private JPanel jp_center_renctlyRead_center;//中部面板
	
	private JLabel lb_center_renctlyRead_north_renctlyread;//最近阅读标签
	private JLabel lb_center_renctlyRead_north_searchmore;//查询更多标签
	//第一本书
	private JLabel lb_center_renctlyRead_center_book01_bookName;//书名
	private JLabel lb_center_renctlyRead_center_book01_bookAuthor;//作者名
	private JLabel lb_center_renctlyRead_center_book01_bookLastReading;//上一次阅读章节
	private JLabel lb_center_renctlyRead_center_book01_bookContinueRead;//继续阅读
	//第二本书
	private JLabel lb_center_renctlyRead_center_book02_bookName;//书名
	private JLabel lb_center_renctlyRead_center_book02_bookAuthor;//作者名
	private JLabel lb_center_renctlyRead_center_book02_bookLastReading;//上一次阅读章节
	private JLabel lb_center_renctlyRead_center_book02_bookContinueRead;//继续阅读
	//第三本
	private JLabel lb_center_renctlyRead_center_book03_bookName;//书名
	private JLabel lb_center_renctlyRead_center_book03_bookAuthor;//作者名
	private JLabel lb_center_renctlyRead_center_book03_bookLastReading;//上一次阅读章节
	private JLabel lb_center_renctlyRead_center_book03_bookContinueRead;//继续阅读
	//第四本
	private JLabel lb_center_renctlyRead_center_book04_bookName;//书名
	private JLabel lb_center_renctlyRead_center_book04_bookAuthor;//作者名
	private JLabel lb_center_renctlyRead_center_book04_bookLastReading;//上一次阅读章节
	private JLabel lb_center_renctlyRead_center_book04_bookContinueRead;//继续阅读
	//第五本
	private JLabel lb_center_renctlyRead_center_book05_bookName;//书名
	private JLabel lb_center_renctlyRead_center_book05_bookAuthor;//作者名
	private JLabel lb_center_renctlyRead_center_book05_bookLastReading;//上一次阅读章节
	private JLabel lb_center_renctlyRead_center_book05_bookContinueRead;//继续阅读
	//第六本
	private JLabel lb_center_renctlyRead_center_book06_bookName;//书名
	private JLabel lb_center_renctlyRead_center_book06_bookAuthor;//作者名
	private JLabel lb_center_renctlyRead_center_book06_bookLastReading;//上一次阅读章节
	private JLabel lb_center_renctlyRead_center_book06_bookContinueRead;//继续阅读
	

	//**************************************************************
	//**************************************************************
	//动态面板
	private JPanel jp_center_dynamic;//动态面板
	private JLabel lb_center_dynamic_titleImg;//图片
	
	//**************************************************************
	//**************************************************************
	//友情链接
	private JPanel jp_center_link;//链接面板
	private JLabel lb_center_link_titleImg;//图片
	
	
	//===================中部面板组件==============================
	private JLabel lb_south_titleImg;//下部面板图片
	//===================下部面板组件==============================
	private int width;//屏幕的寬度
	private int height;//屏幕的高度
	
	private BaseDao baseDao=new BaseDao();
	
	public Person_center(String username,boolean flag) {
		if (!flag) {
			new Login_Panel();
			jf.dispose();
		}
		jf=new JFrame();
		jf.setTitle("个人中心");
		//setLayout(null);//绝对布局
		Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
		height=(int) dimension.getHeight();
		width=(int)dimension.getWidth();
		
		//界面总面板
		jp_all = new JPanel();
		jp_all.setLayout(new BorderLayout());
		jp_all.setPreferredSize(new Dimension(width, (int)(height*2.5)));
		
		
		//滑动总面板
		sp_all=new JScrollPane();
		sp_all.getViewport().add(jp_all);
		//设置滚动条滑动速度
		sp_all.getVerticalScrollBar().setUnitIncrement(30);
		jf.add(sp_all);
		//=============================上部总面板======================================
	    //上部总面板
		jp_north=new JPanel();
		jp_north.setLayout(new BorderLayout());
//		jp_north.setBackground(Color.black);
		jp_north.setPreferredSize(new Dimension(0, (int)(height*0.2)));
		jp_all.add(BorderLayout.NORTH,jp_north);
		
		//字体
		Font font=new Font("微软雅黑", Font.PLAIN, 12);
		//======================上部的上部面板==============================
		//上部面板
		jp_north_north=new JPanel();
		jp_north_north.setLayout(null);
		jp_north_north.setPreferredSize(new Dimension(0,(int)(height*0.2*0.2)));
		jp_north.add(BorderLayout.NORTH,jp_north_north);
		
		//书海男生网按钮
	    lb_north_north_boy=new JLabel("书海男生网  |");
	    lb_north_north_boy.setFont(font);
	    lb_north_north_boy.setForeground(Color.black);
	    lb_north_north_boy.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_boy.setBounds( (int)(width*0.125),  (int)(height*0.2*0.2*0),75, 30);
	    jp_north_north.add(lb_north_north_boy);
	    
	    lb_north_north_boy.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	   
	    //书海文学网按钮
	    lb_north_north_literature=new JLabel("书海文学网  |");
	    lb_north_north_literature.setFont(font);
	    lb_north_north_literature.setForeground(Color.black);
	    lb_north_north_literature.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_literature.setBounds( (int)(width*0.185),  (int)(height*0.2*0.2*0),75, 30);
	    jp_north_north.add(lb_north_north_literature);
	    
	    lb_north_north_literature.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	   
	    //书海动漫网按钮
	    lb_north_north_anime=new JLabel("书海动漫网");
	    lb_north_north_anime.setFont(font);
	    lb_north_north_anime.setForeground(Color.black);
	    lb_north_north_anime.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_anime.setBounds( (int)(width*0.245),  (int)(height*0.2*0.2*0),75, 30);
	    jp_north_north.add(lb_north_north_anime);
	    
	    lb_north_north_anime.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    //注册按钮
	    lb_north_north_login=new JLabel("注册  |");
	    lb_north_north_login.setFont(font);
	    lb_north_north_login.setForeground(Color.black);
	    lb_north_north_login.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_login.setBounds( (int)(width*0.72),  (int)(height*0.2*0.2*0), 50, 30);
	    lb_north_north_login.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new Register_Jpanel();
        	}
		});
	    if (username!=null&& !username.equals("")) {
	    	lb_north_north_login.setText(username);
	    	lb_north_north_login.setForeground(Color.red);
		}
	    jp_north_north.add(lb_north_north_login);
	    
	    
	    //登录按钮
	    lb_north_north_land=new JLabel("登录  |");
	    lb_north_north_land.setFont(font);
	    lb_north_north_land.setForeground(Color.red);
	    lb_north_north_land.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_north_land.setBounds((int)(width*0.755),  (int)(height*0.2*0.2*0), 50, 30);
	    lb_north_north_land.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new Login_Panel();
        	}
		});
	    if (username!=null&& !username.equals("")) {
	    	lb_north_north_land.setText("退出");
	    	lb_north_north_land.setForeground(Color.black);
		}
	    jp_north_north.add(lb_north_north_land);
	    
	    //帮助按钮
	    lb_north_north_help=new JLabel("帮助  |");
	    lb_north_north_help.setFont(font);
	    lb_north_north_help.setForeground(Color.black);
	    lb_north_north_help.setBounds((int)(width*0.79),  (int)(height*0.2*0.2*0), 50, 30);
	    jp_north_north.add(lb_north_north_help);
	    
	    //客户端按钮
	    lb_north_north_client=new JLabel("客户端");
	    lb_north_north_client.setFont(font);
	    lb_north_north_client.setForeground(Color.black);
	    lb_north_north_client.setBounds((int)(width*0.825),  (int)(height*0.2*0.2*0), 50, 30);
	    jp_north_north.add(lb_north_north_client);
		//======================上部的上部面板==============================
		
	    //======================上部的中部面板==============================
		//中部面板
	    jp_north_center=new JPanel();
	    jp_north_center.setLayout(null);
	    jp_north_center.setBackground(Color.WHITE);
//	    jp_north_center.setPreferredSize(new Dimension(0,(int)(height*0.2*0.6)));
		jp_north.add(BorderLayout.CENTER,jp_north_center);
	    
		//上部面板中部书海图片
	    lb_north_center_title=new JLabel();
	    lb_north_center_title.setIcon(new ImageIcon(Person_center.class.getResource("./YFimg/书海标题.png")));
	    lb_north_center_title.setBounds( (int)(width*0.125),(int)(height*0.2*0.6*0.2), 150, 60);
	    jp_north_center.add(lb_north_center_title);
	    
	    //热搜标签
	    lb_north_center_hotsearch=new JLabel("热搜:");
	    lb_north_center_hotsearch.setFont(font);
	    lb_north_center_hotsearch.setForeground(Color.black);
	    lb_north_center_hotsearch.setBounds((int)(width*0.375),(int)(height*0.2*0.6*0.22),50,30);
	    jp_north_center.add(lb_north_center_hotsearch);
	    
	    //热搜文本01
	    lb_north_center_novel1=new JLabel("将军，别乱来");
	    lb_north_center_novel1.setFont(font);
	    lb_north_center_novel1.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_novel1.setForeground(Color.red);
	    lb_north_center_novel1.setBounds((int)(width*0.4),(int)(height*0.2*0.6*0.22),90,30);
	    jp_north_center.add(lb_north_center_novel1);
	    
	    lb_north_center_novel1.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		String sql="SELECT * FROM book WHERE bookname LIKE ?";
	    		String params="%"+lb_north_center_novel1.getText()+"%";
	    		System.out.println(params);
	    		Book book=searchbook(sql, params);
	    		System.out.println(book);
	    	}
		});
	    
	    //热搜文本02
	    lb_north_center_novel2=new JLabel("冷情总裁求放过");
	    lb_north_center_novel2.setFont(font);
	    lb_north_center_novel2.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_novel2.setForeground(Color.red);
	    lb_north_center_novel2.setBounds((int)(width*0.47),(int)(height*0.2*0.6*0.22),90,30);
	    jp_north_center.add(lb_north_center_novel2);
	    
	    lb_north_center_novel2.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		String sql="SELECT * FROM book WHERE bookname LIKE ?";
	    		String params="%"+lb_north_center_novel2.getText()+"%";
	    		System.out.println(params);
	    		Book book=searchbook(sql, params);
	    		System.out.println(book);
	    	}
		});
	    
	    //热搜文本03
	    lb_north_center_novel3=new JLabel("夫人叫你来喝药");
	    lb_north_center_novel3.setFont(font);
	    lb_north_center_novel3.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_novel3.setForeground(Color.red);
	    lb_north_center_novel3.setBounds((int)(width*0.54),(int)(height*0.2*0.6*0.22),90,30);
	    jp_north_center.add(lb_north_center_novel3);
	    
	    lb_north_center_novel3.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		String sql="SELECT * FROM book WHERE bookname LIKE ?";
	    		String params="%"+lb_north_center_novel3.getText()+"%";
	    		System.out.println(params);
	    		Book book=searchbook(sql, params);
	    		System.out.println(book);
	    	}
		});
	    
//	    JTextField jtf2 = new JTextField("提示",10); 
//	    jtf2.setFont(new Font("标楷体",Font.TRUETYPE_FONT|Font.ITALIC,12));
	    //搜索文本框
	    tf_search=new JTextField("书号/书名/作者/关键字/简介",10);
	    tf_search.setFont(new Font("标楷体",Font.TRUETYPE_FONT|Font.ITALIC,12));
	    tf_search.setBounds((int)(width*0.375), (int)(height*0.2*0.6*0.44),300, 30);
	    jp_north_center.add(tf_search);
	    
	    tf_search.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {//鼠标左键
	    			if (tf_search.getText().equals("书号/书名/作者/关键字/简介")) {
						tf_search.setText("");
					}
	    			
				}
	    	}
	    	
	    	//鼠标退出组件
	    	@Override
	    	public void mouseExited(MouseEvent e) {
	    		if (tf_search.getText().equals("")||tf_search.getText()==null) {
	    			tf_search.setText("书号/书名/作者/关键字/简介");
				}
	    	}
	    	
		});
	    
	    
	    //搜索面板
	    jp_north_center_search=new JPanel();
	    jp_north_center_search.setBounds((int)(width*0.59), (int)(height*0.2*0.6*0.44),60, 30);
	    jp_north_center_search.setBackground(Color.RED);
		jp_north_center.add(jp_north_center_search);
	    
	    //上部面板搜索按钮图片
	    lb_north_center_search=new JLabel("搜索");
	    lb_north_center_search.setFont(new Font("微软雅黑",Font.PLAIN,14));
	    lb_north_center_search.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_search.setForeground(Color.WHITE);
//	    lb_north_center_search.setBounds((int)(width*0.54), (int)(height*0.2*0.6*0.44),225, 30);
	    jp_north_center_search.add(lb_north_center_search);
	    
	    lb_north_center_search.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
	    			String params="%"+tf_search.getText()+"%";
	    			String sql="SELECT * FROM book WHERE bookname LIKE ?";
	    			Book book=searchbook(sql,params);
					System.out.println(book);
				}
	    	}
		});
	    
	    
	    
	    //上部面板充值按钮
	    lb_north_center_recharge=new JLabel("充值");
	    lb_north_center_recharge.setForeground(Color.red);
	    lb_north_center_recharge.setFont(new Font("微软雅黑",Font.PLAIN,14));
//	    lb_Recharge.setIcon(new ImageIcon(Novel.class.getResource("充值图片.png")));
	    lb_north_center_recharge.setBounds((int)(width*0.69), (int)(height*0.2*0.6*0.2),225, 30);
	    jp_north_center.add(lb_north_center_recharge);
	    
	    //上部面板作家中心按钮
	    lb_north_center_authorcenter=new JLabel("作家中心");
	    lb_north_center_authorcenter.setForeground(Color.red);
	    lb_north_center_authorcenter.setFont(new Font("微软雅黑",Font.PLAIN,14));
//	    lb_north_center_authorcenter.setIcon(new ImageIcon(Novel.class.getResource("作家中心图片.png")));
	    lb_north_center_authorcenter.setBounds((int)(width*0.69), (int)(height*0.2*0.6*0.5),225, 30);
	    jp_north_center.add(lb_north_center_authorcenter);
	    
	    //上部面板邮件图像登录按钮
	    lb_north_center_email=new JLabel();
	    lb_north_center_email.setIcon(new ImageIcon(Person_center.class.getResource("./YFimg/邮件图片.png")));
	    lb_north_center_email.setBounds((int)(width*0.77), (int)(height*0.2*0.6*0.4),225, 30);
	    jp_north_center.add(lb_north_center_email);
	    
	    //上部面板登录头像图片
	    ImageIcon headPicImg=new ImageIcon(Person_center.class.getResource("./YFimg/头像图片.png"));
	    lb_north_center_myself=new JLabel(headPicImg);
	    lb_north_center_myself.setBounds((int)(width*0.81), (int)(height*0.2*0.6*0.3),headPicImg.getIconWidth(), headPicImg.getIconHeight());
	    lb_north_center_myself.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_center_myself.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		if (e.getButton()==MouseEvent.BUTTON1) {
        			new Login_Panel();
				}
        	}        
		});
	    jp_north_center.add(lb_north_center_myself);
	    
		
	    
	    //======================上部的中部面板==============================
	    
	    //======================上部的下部面板==============================
	    //下部面板
		jp_north_south=new JPanel();
		jp_north_south.setLayout(null);
		jp_north_south.setBackground(Color.red);
		jp_north_south.setPreferredSize(new Dimension(0,(int)(height*0.2*0.2)));
		jp_north.add(BorderLayout.SOUTH,jp_north_south);
		
		//标题文字格式
	    Font font15=new Font("微软雅黑", Font.PLAIN, 15);
	    //首页按钮
	    lb_north_south_homepage=new JLabel("首页");
	    lb_north_south_homepage.setFont(font15);
	    lb_north_south_homepage.setForeground(Color.white);
	    lb_north_south_homepage.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_homepage.setBounds((int)(width*0.135), (int)(height*0.2*0.2*0.05), 50, 30);
	    lb_north_south_homepage.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
	    			new FirstPage_Jpanel(username,true);//首页
	    			jf.dispose();
				}
	    	}
		});
	    jp_north_south.add(lb_north_south_homepage);
	    
	    //首页隔开按钮
	    lb_north_south_01=new JLabel("|");
	    lb_north_south_01.setFont(font15);
	    lb_north_south_01.setForeground(Color.white);
	    lb_north_south_01.setBounds((int)(width*0.2), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_01);
	    
	    //书库按钮
	    lb_north_south_library=new JLabel("书库");
	    lb_north_south_library.setFont(font15);
	    lb_north_south_library.setForeground(Color.white);
	    lb_north_south_library.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_library.setBounds((int)(width*0.245), (int)(height*0.2*0.2*0.05), 50, 30);
	    lb_north_south_library.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {

        		new StackRoom(username, flag);
        		jf.dispose();
        	}
		});
	    jp_north_south.add(lb_north_south_library);
	    
	    //书库隔开标签
	    lb_north_south_02=new JLabel("|");
	    lb_north_south_02.setFont(font15);
	    lb_north_south_02.setForeground(Color.white);
	    lb_north_south_02.setBounds((int)(width*0.305), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_02);
	    
	    //排行按钮
	    lb_north_south_ranking=new JLabel("排行");
	    lb_north_south_ranking.setFont(font15);
	    lb_north_south_ranking.setForeground(Color.white);
	    lb_north_south_ranking.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_ranking.setBounds((int)(width*0.345), (int)(height*0.2*0.2*0.05), 50, 30);
	    lb_north_south_ranking.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new RankingFrame(username, flag);
        		jf.dispose();
        	}
		});
	    jp_north_south.add(lb_north_south_ranking);
	    
	    //排行隔开标签
	    lb_north_south_03=new JLabel("|");
	    lb_north_south_03.setFont(font15);
	    lb_north_south_03.setForeground(Color.white);
	    lb_north_south_03.setBounds((int)(width*0.4), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_03);
	    
	    //IP专区按钮
	    lb_north_south_IP=new JLabel("IP专区");
	    lb_north_south_IP.setFont(font15);
	    lb_north_south_IP.setForeground(Color.white);
	    lb_north_south_IP.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_IP.setBounds((int)(width*0.44), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_IP);
	    
	    lb_north_south_IP.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * <p>Title: mouseClicked</p>
	    	 * <p>Description: </p>
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		JOptionPane.showMessageDialog(null, "该功能正在建设中");
	    	}
		});
	    
	    
	    //IP专区按钮隔开线
	    lb_north_south_04=new JLabel("|");
	    lb_north_south_04.setFont(font15);
	    lb_north_south_04.setForeground(Color.white);
	    lb_north_south_04.setBounds((int)(width*0.5), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_04);
	    
	    //作家福利按钮
	    lb_north_south_authorwelfare=new JLabel("作家福利");
	    lb_north_south_authorwelfare.setFont(font15);
	    lb_north_south_authorwelfare.setForeground(Color.white);
	    lb_north_south_authorwelfare.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_authorwelfare.setBounds((int)(width*0.54), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_authorwelfare);
	    
	    lb_north_south_authorwelfare.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new WelfareFrame();
	    		jf.dispose();
	    	}
		});
	    
	    //作家福利按钮隔开线
	    lb_north_south_05=new JLabel("|");
	    lb_north_south_05.setFont(font15);
	    lb_north_south_05.setForeground(Color.white);
	    lb_north_south_05.setBounds((int)(width*0.61), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_05);
	    
	    //公告资讯按钮
	    lb_north_south_notice=new JLabel("公告资讯");
	    lb_north_south_notice.setFont(font15);
	    lb_north_south_notice.setForeground(Color.white);
	    lb_north_south_notice.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_notice.setBounds((int)(width*0.635), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_notice);
	    
	    lb_north_south_notice.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new Notice(username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //公告资讯按钮隔开线
	    lb_north_south_06=new JLabel("|");
	    lb_north_south_06.setFont(font15);
	    lb_north_south_06.setForeground(Color.white);
	    lb_north_south_06.setBounds((int)(width*0.7), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_06);
	    
	    //男生专区按钮
	    lb_north_south_boyzone=new JLabel("男生专区");
	    lb_north_south_boyzone.setFont(font15);
	    lb_north_south_boyzone.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_boyzone.setForeground(Color.white);
	    lb_north_south_boyzone.setBounds((int)(width*0.73), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_boyzone);
	    
	    lb_north_south_boyzone.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		JOptionPane.showMessageDialog(null, "该功能正在建设中");
	    	}
		});
	    
	    //女生专区按钮隔开线
	    lb_north_south_07=new JLabel("|");
	    lb_north_south_07.setFont(font15);
	    lb_north_south_07.setForeground(Color.white);
	    lb_north_south_07.setBounds((int)(width*0.79), (int)(height*0.2*0.2*0.05), 50, 30);
	    jp_north_south.add(lb_north_south_07);
	    
	    
	    //我的书架按钮
	    lb_north_south_mylibrary=new JLabel("我的书架");
	    lb_north_south_mylibrary.setFont(font15);
	    lb_north_south_mylibrary.setForeground(Color.white);
	    lb_north_south_mylibrary.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_north_south_mylibrary.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new My_bookshelf(username,true);
        		jf.dispose();
        	}
		});
	    lb_north_south_mylibrary.setBounds((int)(width*0.815), (int)(height*0.2*0.2*0.05), 100, 30);
	    jp_north_south.add(lb_north_south_mylibrary);
		
	    //======================上部的下部面板==============================
	    
	    //=============================上部总面板==================================
	    //==========================中部面板=======================================
	    Font font13=new Font("微软雅黑",Font.PLAIN,13);
	    
	    //中部面板
	    jp_center=new JPanel();
	    jp_center.setLayout(null);
//	    jp_center.setBorder(new LineBorder(Color.black));
//	    jp_south.setPreferredSize(new Dimension(0, (int)(height*0.27)));
//	    jp_center.setPreferredSize(new Dimension(0, (int)(height*0.8)));
	    jp_all.add(BorderLayout.CENTER,jp_center);
	    
	    //**********************左部面板****************************
	    //左部面板
	    jp_center_west=new JPanel();
	    jp_center_west.setLayout(new BorderLayout());
//	    jp_center_west.setBackground(Color.black);
	    jp_center_west.setBounds((int)(width*0.125), 0, (int)(width*0.125), (int)(height*0.4));
	    jp_center.add(jp_center_west);
	    
	    //左部面板的上部面板
	    jp_center_west_north=new JPanel();
	    jp_center_west_north.setBackground(Color.white);
	    jp_center_west_north.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_west_north.setLayout(null);
	    jp_center_west_north.setPreferredSize(new Dimension(0,(int)(height*0.4*0.1)));
	    jp_center_west.add(BorderLayout.NORTH,jp_center_west_north);
	    
	    //左部面板的中部面板
	    jp_center_west_center=new JPanel();
	    jp_center_west_center.setBackground(Color.WHITE);
	    jp_center_west_center.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_west_center.setLayout(null);
	    jp_center_west.add(BorderLayout.CENTER,jp_center_west_center);
	    
	    //*****************左部面板的上部面板***************************
	    //左部面板的上部面板的标签
	    lb_center_west_north_myhomepage=new JLabel("我的主页");
	    lb_center_west_north_myhomepage.setFont(font15);
	    lb_center_west_north_myhomepage.setForeground(Color.BLUE);
	    lb_center_west_north_myhomepage.setBounds((int)(width*0.125*0.3),0,100,30);
	    jp_center_west_north.add(lb_center_west_north_myhomepage);
	    
	    //******************左部面板的中部面板***********************
	    //账号管理
	    lb_center_west_center_accontManager=new JLabel("账号管理");
	    lb_center_west_center_accontManager.setFont(font15);
	    lb_center_west_center_accontManager.setBounds((int)(width*0.125*0.15), (int)(height*0.4*0.05), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_accontManager);
	    
	    //个人资料
	    lb_center_west_center_myselfMsg=new JLabel("个人资料");
	    lb_center_west_center_myselfMsg.setFont(font13);
	    lb_center_west_center_myselfMsg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_west_center_myselfMsg.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.13), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_myselfMsg);
	    
	    //密码及安全
	    lb_center_west_center_passwordAndSecurity=new JLabel("密码及安全");
	    lb_center_west_center_passwordAndSecurity.setFont(font13);
	    lb_center_west_center_passwordAndSecurity.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_west_center_passwordAndSecurity.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.21), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_passwordAndSecurity);
	    
	    //我的书海
	    lb_center_west_center_mylibrary=new JLabel("我的书海");
	    lb_center_west_center_mylibrary.setFont(font15);
	    lb_center_west_center_mylibrary.setBounds((int)(width*0.125*0.15), (int)(height*0.4*0.35), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_mylibrary);
	    
	    //我的书架
	    lb_center_west_center_mybooks=new JLabel("我的书架");
	    lb_center_west_center_mybooks.setFont(font13);
	    lb_center_west_center_mybooks.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_west_center_mybooks.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.43), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_mybooks);
	    
	    lb_center_west_center_mybooks.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
					
				}
	    	}
		});
	    
	    
	    //我的书评
	    lb_center_west_center_myriview=new JLabel("我的书评");
	    lb_center_west_center_myriview.setFont(font13);
	    lb_center_west_center_myriview.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.51), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_myriview);
	    
	    //短信息
	    lb_center_west_center_shortMsg=new JLabel("短信息");
	    lb_center_west_center_shortMsg.setFont(font13);
	    lb_center_west_center_shortMsg.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.59), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_shortMsg);
	    
	    //会员特权
	    lb_center_west_center_VIPpower=new JLabel("会员特权");
	    lb_center_west_center_VIPpower.setFont(font13);
	    lb_center_west_center_VIPpower.setBounds((int)(width*0.125*0.3), (int)(height*0.4*0.67), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_VIPpower);
	    
	    //申请作者
	    lb_center_west_center_applyAuthor=new JLabel("申请作者");
	    lb_center_west_center_applyAuthor.setFont(font15);
	    lb_center_west_center_applyAuthor.setBounds((int)(width*0.125*0.15), (int)(height*0.4*0.8), 100, 30);
	    jp_center_west_center.add(lb_center_west_center_applyAuthor);
	    
	    //**********************左部面板****************************
	    //*********************简要信息面板*************************
	    //简要信息面板
	    jp_center_simpleMsg=new JPanel();
	    jp_center_simpleMsg.setLayout(new BorderLayout());
//	    jp_center_simpleMsg.setBackground(Color.white);
	    jp_center_simpleMsg.setBounds((int)(width*0.252), 0, (int)(width*0.6), (int)(height*0.26));
	    jp_center_simpleMsg.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center.add(jp_center_simpleMsg);
	    
	    GridBagConstraints gbc=new GridBagConstraints();
	    gbc.ipadx=0;
	    gbc.ipady=(int)(height*0.02);
	    
	    //***********************左部面板**********************
	    //左部面板
	    jp_center_simpleMsg_west=new JPanel();
	    jp_center_simpleMsg_west.setLayout(new GridBagLayout());
	    jp_center_simpleMsg_west.setBackground(Color.white);
	    jp_center_simpleMsg_west.setPreferredSize(new Dimension((int)(width*0.6*0.25), 0));
	    jp_center_simpleMsg.add(BorderLayout.WEST,jp_center_simpleMsg_west);
	    
	    //头像标签
	    ImageIcon headImg=new ImageIcon(Person_center.class.getResource("./YFimg/用户头像放大图像.png"));
	    lb_center_simpleMsg_west_headPic=new JLabel(headImg);
//	    lb_center_simpleMsg_west_headPic.setIcon(new ImageIcon(person_center.class.getResource("./img/头像图片.png")));
	    lb_center_simpleMsg_west_headPic.setPreferredSize(new Dimension(headImg.getIconWidth(),headImg.getIconHeight()));
	    gbc.gridx=0;
	    gbc.gridy=0;
	    jp_center_simpleMsg_west.add(lb_center_simpleMsg_west_headPic,gbc);
	    
	    //昵称标签
	    lb_center_simpleMsg_west_username=new JLabel("沉默的羔羊5739lv");
	    lb_center_simpleMsg_west_username.setFont(new Font("微软雅黑",Font.BOLD,13));
	    gbc.gridx=0;
	    gbc.gridy=1;
	    if (username!=null&& !username.equals("")) {
	    	lb_center_simpleMsg_west_username.setText(username);
		}
	    jp_center_simpleMsg_west.add(lb_center_simpleMsg_west_username,gbc);
	    //***********************中部面板**********************
	    //中部面板
	    jp_center_simpleMsg_center=new JPanel();
	    jp_center_simpleMsg_center.setLayout(new BorderLayout());
	    jp_center_simpleMsg.add(BorderLayout.CENTER,jp_center_simpleMsg_center);
	    
	    //余额图片
	    ImageIcon balanceImg=new ImageIcon(Person_center.class.getResource("./YFimg/余额图片.png"));
	    lb_center_simpleMsg_center_balance=new JLabel(balanceImg);
	    lb_center_simpleMsg_center_balance.setPreferredSize(new Dimension((int)(width*0.6*0.5), (int)(height*0.26)));
	    jp_center_simpleMsg_center.add(BorderLayout.CENTER,lb_center_simpleMsg_center_balance);
	    
	    //***********************右部面板**********************
	    //右部面板
	    jp_center_simpleMsg_east=new JPanel();
	    jp_center_simpleMsg_east.setLayout(new GridBagLayout());
	    jp_center_simpleMsg_east.setBackground(Color.white);
	    jp_center_simpleMsg_east.setPreferredSize(new Dimension((int)(width*0.6*0.25), 0));
	    jp_center_simpleMsg.add(BorderLayout.EAST,jp_center_simpleMsg_east);
	    
	    //个人资料
	    ImageIcon myselfMsgImg=new ImageIcon(Person_center.class.getResource("./YFimg/个人资料图片.png"));
	    lb_center_simpleMsg_east_myselfMsg=new JLabel(myselfMsgImg);
	    lb_center_simpleMsg_east_myselfMsg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_simpleMsg_east_myselfMsg.setPreferredSize(new Dimension(myselfMsgImg.getIconWidth(), myselfMsgImg.getIconHeight()));
	    gbc.gridx=0;
	    gbc.gridy=0;
	    jp_center_simpleMsg_east.add(lb_center_simpleMsg_east_myselfMsg,gbc);
	    
	    lb_center_simpleMsg_east_myselfMsg.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
					
				}
	    	}
		});
	    
	    
	    //申请作者
	    ImageIcon applyAuthorImg=new ImageIcon(Person_center.class.getResource("./YFimg/申请作者图片.png"));
	    lb_center_simpleMsg_east_applyAuthor=new JLabel(applyAuthorImg);
	    lb_center_simpleMsg_east_applyAuthor.setPreferredSize(new Dimension(applyAuthorImg.getIconWidth(), applyAuthorImg.getIconHeight()));
	    gbc.gridx=0;
	    gbc.gridy=1;
	    jp_center_simpleMsg_east.add(lb_center_simpleMsg_east_applyAuthor,gbc);
	    
	    //*********************简要信息面板*************************
	    //*********************我的书架面板*************************
	    //我的书架面板
	    jp_center_mylibrary=new JPanel();
	    jp_center_mylibrary.setLayout(new BorderLayout());
	    jp_center_mylibrary.setBounds((int)(width*0.252),jp_center_simpleMsg.getHeight()+(int)(height*0.005),(int)(width*0.6), (int)(height*0.45));
//	    jp_center_mylibrary.setBackground(Color.BLACK);
	    jp_center.add(jp_center_mylibrary);
	    
	    //我的书架上部面板
	    jp_center_mylibrary_north=new JPanel();
	    jp_center_mylibrary_north.setLayout(null);
	    jp_center_mylibrary_north.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_mylibrary_north.setPreferredSize(new Dimension(0,(int)(jp_center_mylibrary.getHeight()*0.1)));
	    jp_center_mylibrary_north.setBackground(Color.white);
	    jp_center_mylibrary.add(BorderLayout.NORTH,jp_center_mylibrary_north);
	    
	    //我的书架标签
	    lb_center_mylibrary_north_mybook=new JLabel("| 我的书架");
	    lb_center_mylibrary_north_mybook.setFont(font15);
	    lb_center_mylibrary_north_mybook.setBounds((int)(jp_center_mylibrary.getWidth()*0.02),0,100,30);
	    jp_center_mylibrary_north.add(lb_center_mylibrary_north_mybook);
	    
	    //查询更多标签
	    lb_center_mylibrary_north_searchmore=new JLabel("查看更多>>");
	    lb_center_mylibrary_north_searchmore.setFont(font);
	    lb_center_mylibrary_north_searchmore.setForeground(Color.blue);
	    lb_center_mylibrary_north_searchmore.setBounds((int)(jp_center_mylibrary.getWidth()*0.92),0,100,30);
	    jp_center_mylibrary_north.add(lb_center_mylibrary_north_searchmore);
	    
	    lb_center_mylibrary_north_searchmore.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
					
				}
	    	}
		});
	    
	    
	    //我的书架中部面板
	    jp_center_mylibrary_center=new JPanel();
	    jp_center_mylibrary_center.setLayout(new GridBagLayout());
	    jp_center_mylibrary_center.setBackground(Color.white);
	    jp_center_mylibrary_center.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_mylibrary.add(BorderLayout.CENTER,jp_center_mylibrary_center);
	    
	    GridBagConstraints gbc_mylibrary=new GridBagConstraints();
//	    gbc_mylibrary.ipadx=(int)(jp_center_mylibrary.getWidth()*0.1);
//	    gbc_mylibrary.ipady=(int)(jp_center_mylibrary.getHeight()*0.05);
	    gbc_mylibrary.insets=new Insets(5, 10, 5, 10);
	    
	    //第一本书
	    jp_center_mylibrary_center_book01=new JPanel();
	    jp_center_mylibrary_center_book01.setLayout(null);
	    jp_center_mylibrary_center_book01.setBackground(Color.white);
//	    jp_center_mylibrary_center_book01.setBorder(new LineBorder(Color.BLACK));
	    jp_center_mylibrary_center_book01.setPreferredSize(new Dimension((int)(jp_center_mylibrary.getWidth()*0.4),(int)(jp_center_mylibrary.getHeight()*0.4)));
	    gbc_mylibrary.gridx=0;
	    gbc_mylibrary.gridy=0;
	    jp_center_mylibrary_center.add(jp_center_mylibrary_center_book01,gbc_mylibrary);
	    
	    //图片
	    ImageIcon book1Img=new ImageIcon(Person_center.class.getResource("./YFimg/我在缅甸挖矿那些年.jpg"));
	    book1Img.setImage(book1Img.getImage().getScaledInstance((int)(jp_center_mylibrary_center_book01.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book01.getPreferredSize().getHeight()), Image.SCALE_DEFAULT));
	    lb_center_mylibrary_center_book01_bookImg=new JLabel(book1Img);
	    lb_center_mylibrary_center_book01_bookImg.setBounds(0,0,(int)(jp_center_mylibrary_center_book01.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book01.getPreferredSize().getHeight()));
	    lb_center_mylibrary_center_book01_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book01.add(lb_center_mylibrary_center_book01_bookImg);
	    
	    lb_center_mylibrary_center_book01_bookImg.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		Book book=new Book();
	    		book.setBookname(lb_center_mylibrary_center_book01_bookName.getText());
//	    		book.set
	    		new ClickLaterFrame(book1Img,"我在缅甸挖矿那些年", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_mylibrary_center_book01_bookName=new JLabel("我在缅甸挖矿那些年");
	    lb_center_mylibrary_center_book01_bookName.setFont(font15);
	    lb_center_mylibrary_center_book01_bookName.setBounds((int)(jp_center_mylibrary_center_book01.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book01.getPreferredSize().getHeight()*0.1),300,30);
	    lb_center_mylibrary_center_book01_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book01.add(lb_center_mylibrary_center_book01_bookName);
	    
	    lb_center_mylibrary_center_book01_bookName.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book1Img,"我在缅甸挖矿那些年", username, flag);
	    		jf.dispose();
	    	}
	    	
		});
	    
	    //作者
	    lb_center_mylibrary_center_book01_bookAuthor=new JLabel("作者：辰");
	    lb_center_mylibrary_center_book01_bookAuthor.setFont(font);
	    lb_center_mylibrary_center_book01_bookAuthor.setBounds((int)(jp_center_mylibrary_center_book01.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book01.getPreferredSize().getHeight()*0.25),300,30);
//	    lb_center_mylibrary_center_book01_bookAuthor.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book01.add(lb_center_mylibrary_center_book01_bookAuthor);
	    
	    //最新章节
	    lb_center_mylibrary_center_book01_bookChapter=new JLabel("最新章节：第587章 住旅馆的杀手");
	    lb_center_mylibrary_center_book01_bookChapter.setFont(font);
	    lb_center_mylibrary_center_book01_bookChapter.setBounds((int)(jp_center_mylibrary_center_book01.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book01.getPreferredSize().getHeight()*0.4),300,30);
	    lb_center_mylibrary_center_book01_bookChapter.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book01.add(lb_center_mylibrary_center_book01_bookChapter);
	    
	    //更新时间
	    lb_center_mylibrary_center_book01_bookUpdatetime=new JLabel("更新时间：12-23 21:12");
	    lb_center_mylibrary_center_book01_bookUpdatetime.setFont(font);
	    lb_center_mylibrary_center_book01_bookUpdatetime.setBounds((int)(jp_center_mylibrary_center_book01.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book01.getPreferredSize().getHeight()*0.55),300,30);
//	    lb_center_mylibrary_center_book01_bookUpdatetime.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book01.add(lb_center_mylibrary_center_book01_bookUpdatetime);
	    
	    
	    //第二本书
	    jp_center_mylibrary_center_book02=new JPanel();
	    jp_center_mylibrary_center_book02.setLayout(null);
	    jp_center_mylibrary_center_book02.setBackground(Color.white);
	    jp_center_mylibrary_center_book02.setPreferredSize(new Dimension((int)(jp_center_mylibrary.getWidth()*0.4),(int)(jp_center_mylibrary.getHeight()*0.4)));
	    gbc_mylibrary.gridx=1;
	    gbc_mylibrary.gridy=0;
	    jp_center_mylibrary_center.add(jp_center_mylibrary_center_book02,gbc_mylibrary);
	    
	  //图片
	    ImageIcon book2Img=new ImageIcon(Person_center.class.getResource("./YFimg/嫡女嫁到：贴身侍卫请上位.jpg"));
	    book2Img.setImage(book2Img.getImage().getScaledInstance((int)(jp_center_mylibrary_center_book02.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book02.getPreferredSize().getHeight()), Image.SCALE_DEFAULT));
	    lb_center_mylibrary_center_book02_bookImg=new JLabel(book2Img);
	    lb_center_mylibrary_center_book02_bookImg.setBounds(0,0,(int)(jp_center_mylibrary_center_book02.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book02.getPreferredSize().getHeight()));
	    lb_center_mylibrary_center_book02_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book02.add(lb_center_mylibrary_center_book02_bookImg);
	    
	    lb_center_mylibrary_center_book02_bookImg.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book2Img,"嫡女嫁到：贴身侍卫请上位", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    
	    //书名
	    lb_center_mylibrary_center_book02_bookName=new JLabel("嫡女嫁到：贴身侍卫请上位");
	    lb_center_mylibrary_center_book02_bookName.setFont(font15);
	    lb_center_mylibrary_center_book02_bookName.setBounds((int)(jp_center_mylibrary_center_book02.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book02.getPreferredSize().getHeight()*0.1),300,30);
	    lb_center_mylibrary_center_book02_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book02.add(lb_center_mylibrary_center_book02_bookName);
	    
	    lb_center_mylibrary_center_book02_bookName.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book2Img,"嫡女嫁到：贴身侍卫请上位", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //作者
	    lb_center_mylibrary_center_book02_bookAuthor=new JLabel("作者：铁铁");
	    lb_center_mylibrary_center_book02_bookAuthor.setFont(font);
	    lb_center_mylibrary_center_book02_bookAuthor.setBounds((int)(jp_center_mylibrary_center_book02.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book02.getPreferredSize().getHeight()*0.25),300,30);
//	    lb_center_mylibrary_center_book02_bookAuthor.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book02.add(lb_center_mylibrary_center_book02_bookAuthor);
	    
	    //最新章节
	    lb_center_mylibrary_center_book02_bookChapter=new JLabel("最新章节：第275章 大结局");
	    lb_center_mylibrary_center_book02_bookChapter.setFont(font);
	    lb_center_mylibrary_center_book02_bookChapter.setBounds((int)(jp_center_mylibrary_center_book02.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book02.getPreferredSize().getHeight()*0.4),300,30);
	    lb_center_mylibrary_center_book02_bookChapter.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book02.add(lb_center_mylibrary_center_book02_bookChapter);
	    
	    //更新时间
	    lb_center_mylibrary_center_book02_bookUpdatetime=new JLabel("更新时间：11-30 00:52");
	    lb_center_mylibrary_center_book02_bookUpdatetime.setFont(font);
	    lb_center_mylibrary_center_book02_bookUpdatetime.setBounds((int)(jp_center_mylibrary_center_book02.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book02.getPreferredSize().getHeight()*0.55),300,30);
//	    lb_center_mylibrary_center_book02_bookUpdatetime.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book02.add(lb_center_mylibrary_center_book02_bookUpdatetime);
	    
	    
	    //第三本书
	    jp_center_mylibrary_center_book03=new JPanel();
	    jp_center_mylibrary_center_book03.setLayout(null);
	    jp_center_mylibrary_center_book03.setBackground(Color.white);
	    jp_center_mylibrary_center_book03.setPreferredSize(new Dimension((int)(jp_center_mylibrary.getWidth()*0.4),(int)(jp_center_mylibrary.getHeight()*0.4)));
	    gbc_mylibrary.gridx=0;
	    gbc_mylibrary.gridy=1;
	    jp_center_mylibrary_center.add(jp_center_mylibrary_center_book03,gbc_mylibrary);
	    
	    //图片
	    ImageIcon book3Img=new ImageIcon(Person_center.class.getResource("./YFimg/通天武尊.jpg"));
	    book3Img.setImage(book3Img.getImage().getScaledInstance((int)(jp_center_mylibrary_center_book03.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book03.getPreferredSize().getHeight()), Image.SCALE_DEFAULT));
	    lb_center_mylibrary_center_book03_bookImg=new JLabel(book3Img);
	    lb_center_mylibrary_center_book03_bookImg.setBounds(0,0,(int)(jp_center_mylibrary_center_book03.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book03.getPreferredSize().getHeight()));
	    lb_center_mylibrary_center_book03_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book03.add(lb_center_mylibrary_center_book03_bookImg);
	    
	    lb_center_mylibrary_center_book03_bookImg.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book3Img,"通天武尊", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_mylibrary_center_book03_bookName=new JLabel("通天武尊");
	    lb_center_mylibrary_center_book03_bookName.setFont(font15);
	    lb_center_mylibrary_center_book03_bookName.setBounds((int)(jp_center_mylibrary_center_book03.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book03.getPreferredSize().getHeight()*0.1),300,30);
	    lb_center_mylibrary_center_book03_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book03.add(lb_center_mylibrary_center_book03_bookName);
	    
	    lb_center_mylibrary_center_book03_bookName.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book3Img,"通天武尊", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //作者
	    lb_center_mylibrary_center_book03_bookAuthor=new JLabel("作者：疯狂燃烧");
	    lb_center_mylibrary_center_book03_bookAuthor.setFont(font);
	    lb_center_mylibrary_center_book03_bookAuthor.setBounds((int)(jp_center_mylibrary_center_book03.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book03.getPreferredSize().getHeight()*0.25),300,30);
//	    lb_center_mylibrary_center_book02_bookAuthor.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book03.add(lb_center_mylibrary_center_book03_bookAuthor);
	    
	    //最新章节
	    lb_center_mylibrary_center_book03_bookChapter=new JLabel("最新章节：第687章 曜日兽");
	    lb_center_mylibrary_center_book03_bookChapter.setFont(font);
	    lb_center_mylibrary_center_book03_bookChapter.setBounds((int)(jp_center_mylibrary_center_book03.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book03.getPreferredSize().getHeight()*0.4),300,30);
	    lb_center_mylibrary_center_book03_bookChapter.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book03.add(lb_center_mylibrary_center_book03_bookChapter);
	    
	    //更新时间
	    lb_center_mylibrary_center_book03_bookUpdatetime=new JLabel("更新时间：03-15 20:45");
	    lb_center_mylibrary_center_book03_bookUpdatetime.setFont(font);
	    lb_center_mylibrary_center_book03_bookUpdatetime.setBounds((int)(jp_center_mylibrary_center_book03.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book03.getPreferredSize().getHeight()*0.55),300,30);
//	    lb_center_mylibrary_center_book02_bookUpdatetime.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book03.add(lb_center_mylibrary_center_book03_bookUpdatetime);
	    
	    //第四本书
	    jp_center_mylibrary_center_book04=new JPanel();
	    jp_center_mylibrary_center_book04.setLayout(null);
	    jp_center_mylibrary_center_book04.setBackground(Color.white);
	    jp_center_mylibrary_center_book04.setPreferredSize(new Dimension((int)(jp_center_mylibrary.getWidth()*0.4),(int)(jp_center_mylibrary.getHeight()*0.4)));
	    gbc_mylibrary.gridx=1;
	    gbc_mylibrary.gridy=1;
	    jp_center_mylibrary_center.add(jp_center_mylibrary_center_book04,gbc_mylibrary);
	    
	    //图片
	    ImageIcon book4Img=new ImageIcon(Person_center.class.getResource("./YFimg/过妻不候，前夫请止步.jpg"));
	    book4Img.setImage(book4Img.getImage().getScaledInstance((int)(jp_center_mylibrary_center_book04.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book04.getPreferredSize().getHeight()), Image.SCALE_DEFAULT));
	    lb_center_mylibrary_center_book04_bookImg=new JLabel(book4Img);
	    lb_center_mylibrary_center_book04_bookImg.setBounds(0,0,(int)(jp_center_mylibrary_center_book04.getPreferredSize().getWidth()*0.4),(int)(jp_center_mylibrary_center_book04.getPreferredSize().getHeight()));
//	    lb_center_mylibrary_center_book04_bookImg.setBorder(BorderFactory.createRaisedBevelBorder());
	    lb_center_mylibrary_center_book04_bookImg.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book04.add(lb_center_mylibrary_center_book04_bookImg);
	    
	    lb_center_mylibrary_center_book04_bookImg.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book4Img,"过妻不候，前夫请止步", username, flag);
	    		jf.dispose();
	    	}
		});
	    
	    //书名
	    lb_center_mylibrary_center_book04_bookName=new JLabel("过妻不候，前夫请止步");
	    lb_center_mylibrary_center_book04_bookName.setFont(font15);
	    lb_center_mylibrary_center_book04_bookName.setBounds((int)(jp_center_mylibrary_center_book04.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book04.getPreferredSize().getHeight()*0.1),300,30);
	    lb_center_mylibrary_center_book04_bookName.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book04.add(lb_center_mylibrary_center_book04_bookName);
	    
	    lb_center_mylibrary_center_book04_bookName.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new ClickLaterFrame(book4Img,"过妻不候，前夫请止步", username, flag);
	    	}
		});
	    
	    //作者
	    lb_center_mylibrary_center_book04_bookAuthor=new JLabel("作者：灵犀蝌蚪");
	    lb_center_mylibrary_center_book04_bookAuthor.setFont(font);
	    lb_center_mylibrary_center_book04_bookAuthor.setBounds((int)(jp_center_mylibrary_center_book04.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book04.getPreferredSize().getHeight()*0.25),300,30);
//	    lb_center_mylibrary_center_book02_bookAuthor.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book04.add(lb_center_mylibrary_center_book04_bookAuthor);
	    
	    //最新章节
	    lb_center_mylibrary_center_book04_bookChapter=new JLabel("最新章节：第178章 我有必须守护她的理由");
	    lb_center_mylibrary_center_book04_bookChapter.setFont(font);
	    lb_center_mylibrary_center_book04_bookChapter.setBounds((int)(jp_center_mylibrary_center_book04.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book04.getPreferredSize().getHeight()*0.4),300,30);
	    lb_center_mylibrary_center_book04_bookChapter.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book04.add(lb_center_mylibrary_center_book04_bookChapter);
	    
	    //更新时间
	    lb_center_mylibrary_center_book04_bookUpdatetime=new JLabel("更新时间：12-24 15:07");
	    lb_center_mylibrary_center_book04_bookUpdatetime.setFont(font);
	    lb_center_mylibrary_center_book04_bookUpdatetime.setBounds((int)(jp_center_mylibrary_center_book04.getPreferredSize().getWidth()*0.45),(int)(jp_center_mylibrary_center_book04.getPreferredSize().getHeight()*0.55),300,30);
//	    lb_center_mylibrary_center_book02_bookUpdatetime.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    jp_center_mylibrary_center_book04.add(lb_center_mylibrary_center_book04_bookUpdatetime);
	    
	    //*********************我的书架面板*************************
	    //*********************最近阅读面板*************************
	    //最近阅读面板
	    jp_center_renctlyRead=new JPanel();
	    jp_center_renctlyRead.setLayout(new BorderLayout());
	    jp_center_renctlyRead.setBounds((int)(width*0.252),jp_center_simpleMsg.getHeight()+jp_center_mylibrary.getHeight()+(int)(height*0.005*2),(int)(width*0.6), (int)(height*0.45));
//	    jp_center_renctlyRead.setBackground(Color.black);
	    jp_center.add(jp_center_renctlyRead);
	    
	    //************************上部面板************************
	    //上部面板
	    jp_center_renctlyRead_north=new JPanel();
	    jp_center_renctlyRead_north.setLayout(null);
	    jp_center_renctlyRead_north.setPreferredSize(new Dimension(0,(int)(jp_center_renctlyRead.getHeight()*0.1)));
	    jp_center_renctlyRead_north.setBackground(Color.white);
	    jp_center_renctlyRead_north.setBorder(BorderFactory.createRaisedBevelBorder());
	    jp_center_renctlyRead.add(BorderLayout.NORTH,jp_center_renctlyRead_north);
	    
	    //最近阅读
	    lb_center_renctlyRead_north_renctlyread=new JLabel("| 最近阅读");
	    lb_center_renctlyRead_north_renctlyread.setFont(font15);
	    lb_center_renctlyRead_north_renctlyread.setBounds((int)(jp_center_renctlyRead.getWidth()*0.02),0,100,30);
	    jp_center_renctlyRead_north.add(lb_center_renctlyRead_north_renctlyread);
	    
	    //查看更多
	    lb_center_renctlyRead_north_searchmore=new JLabel("查看更多>>");
	    lb_center_renctlyRead_north_searchmore.setFont(font);
	    lb_center_renctlyRead_north_searchmore.setForeground(Color.BLUE);
	    lb_center_renctlyRead_north_searchmore.setBounds((int)(jp_center_renctlyRead.getWidth()*0.92),0,100,30);
	    jp_center_renctlyRead_north.add(lb_center_renctlyRead_north_searchmore);
	    
	    lb_center_renctlyRead_north_searchmore.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (e.getButton()==MouseEvent.BUTTON1) {
					
				}
	    	}
		});
	    
	    //************************上部面板************************
	    //************************中部面板************************
	    //中部面板
	    jp_center_renctlyRead_center=new JPanel();
	    jp_center_renctlyRead_center.setLayout(null);
//	    jp_center_renctlyRead_north.setPreferredSize(new Dimension(0,(int)(jp_center_renctlyRead.getHeight()*0.2)));
	    jp_center_renctlyRead_center.setBackground(Color.white);
	    jp_center_renctlyRead_center.setBorder(BorderFactory.createRaisedBevelBorder());//凸起边框
	    jp_center_renctlyRead.add(BorderLayout.CENTER,jp_center_renctlyRead_center);
	    
	    //第一本书
	    //书名
	    lb_center_renctlyRead_center_book01_bookName=new JLabel("生肖战帝之超时空飞跃");
	    lb_center_renctlyRead_center_book01_bookName.setFont(font13);
	    lb_center_renctlyRead_center_book01_bookName.setBounds((int)(jp_center_renctlyRead.getWidth()*0.02),(int)(jp_center_renctlyRead.getHeight()*0.9*0.1),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book01_bookName);
	    
	    //作者
	    lb_center_renctlyRead_center_book01_bookAuthor=new JLabel("	作者：奢正");
	    lb_center_renctlyRead_center_book01_bookAuthor.setFont(font);
	    lb_center_renctlyRead_center_book01_bookAuthor.setBounds((int)(jp_center_renctlyRead.getWidth()*0.32),(int)(jp_center_renctlyRead.getHeight()*0.9*0.1),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book01_bookAuthor);
	    
	    //上次阅读到
	    lb_center_renctlyRead_center_book01_bookLastReading=new JLabel("上次阅读到：第1章 天人间");
	    lb_center_renctlyRead_center_book01_bookLastReading.setFont(font);
	    lb_center_renctlyRead_center_book01_bookLastReading.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book01_bookLastReading.setBounds((int)(jp_center_renctlyRead.getWidth()*0.55),(int)(jp_center_renctlyRead.getHeight()*0.9*0.1),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book01_bookLastReading);
	    
	    lb_center_renctlyRead_center_book01_bookLastReading.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //继续阅读
	    lb_center_renctlyRead_center_book01_bookContinueRead=new JLabel("继续阅读");
	    lb_center_renctlyRead_center_book01_bookContinueRead.setFont(font);
	    lb_center_renctlyRead_center_book01_bookContinueRead.setCursor(new Cursor(Cursor.HAND_CURSOR ));
	    lb_center_renctlyRead_center_book01_bookContinueRead.setBounds((int)(jp_center_renctlyRead.getWidth()*0.9),(int)(jp_center_renctlyRead.getHeight()*0.9*0.1),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book01_bookContinueRead);
	    
	    lb_center_renctlyRead_center_book01_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //第二本书
	    //书名
	    lb_center_renctlyRead_center_book02_bookName=new JLabel("天门帝国");
	    lb_center_renctlyRead_center_book02_bookName.setFont(font13);
	    lb_center_renctlyRead_center_book02_bookName.setBounds((int)(jp_center_renctlyRead.getWidth()*0.02),(int)(jp_center_renctlyRead.getHeight()*0.9*0.25),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book02_bookName);

	    //作者
	    lb_center_renctlyRead_center_book02_bookAuthor=new JLabel("	作者：");
	    lb_center_renctlyRead_center_book02_bookAuthor.setFont(font);
	    lb_center_renctlyRead_center_book02_bookAuthor.setBounds((int)(jp_center_renctlyRead.getWidth()*0.32),(int)(jp_center_renctlyRead.getHeight()*0.9*0.25),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book02_bookAuthor);
	    
	    //上次阅读到
	    lb_center_renctlyRead_center_book02_bookLastReading=new JLabel("上次阅读到：第1章 面具走狗");
	    lb_center_renctlyRead_center_book02_bookLastReading.setFont(font);
	    lb_center_renctlyRead_center_book02_bookLastReading.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book02_bookLastReading.setBounds((int)(jp_center_renctlyRead.getWidth()*0.55),(int)(jp_center_renctlyRead.getHeight()*0.9*0.25),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book02_bookLastReading);
	    
	    lb_center_renctlyRead_center_book02_bookLastReading.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //继续阅读
	    lb_center_renctlyRead_center_book02_bookContinueRead=new JLabel("继续阅读");
	    lb_center_renctlyRead_center_book02_bookContinueRead.setFont(font);
	    lb_center_renctlyRead_center_book02_bookContinueRead.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book02_bookContinueRead.setBounds((int)(jp_center_renctlyRead.getWidth()*0.9),(int)(jp_center_renctlyRead.getHeight()*0.9*0.25),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book02_bookContinueRead);
	    
	    lb_center_renctlyRead_center_book02_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
		//第三本书
	    //书名
	    lb_center_renctlyRead_center_book03_bookName=new JLabel("山海经密档");
	    lb_center_renctlyRead_center_book03_bookName.setFont(font13);
	    lb_center_renctlyRead_center_book03_bookName.setBounds((int)(jp_center_renctlyRead.getWidth()*0.02),(int)(jp_center_renctlyRead.getHeight()*0.9*0.4),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book03_bookName);

	    //作者
	    lb_center_renctlyRead_center_book03_bookAuthor=new JLabel("作者：缪热");
	    lb_center_renctlyRead_center_book03_bookAuthor.setFont(font);
	    lb_center_renctlyRead_center_book03_bookAuthor.setBounds((int)(jp_center_renctlyRead.getWidth()*0.32),(int)(jp_center_renctlyRead.getHeight()*0.9*0.4),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book03_bookAuthor);
	    
	    //上次阅读到
	    lb_center_renctlyRead_center_book03_bookLastReading=new JLabel("上次阅读到：第1章 秘密入伍");
	    lb_center_renctlyRead_center_book03_bookLastReading.setFont(font);
	    lb_center_renctlyRead_center_book03_bookLastReading.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book03_bookLastReading.setBounds((int)(jp_center_renctlyRead.getWidth()*0.55),(int)(jp_center_renctlyRead.getHeight()*0.9*0.4),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book03_bookLastReading);
	    
	    lb_center_renctlyRead_center_book03_bookLastReading.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //继续阅读
	    lb_center_renctlyRead_center_book03_bookContinueRead=new JLabel("继续阅读");
	    lb_center_renctlyRead_center_book03_bookContinueRead.setFont(font);
	    lb_center_renctlyRead_center_book03_bookContinueRead.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book03_bookContinueRead.setBounds((int)(jp_center_renctlyRead.getWidth()*0.9),(int)(jp_center_renctlyRead.getHeight()*0.9*0.4),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book03_bookContinueRead);
	        
	    lb_center_renctlyRead_center_book03_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
		//第四本书
	    //书名
	    lb_center_renctlyRead_center_book04_bookName=new JLabel("神医小农民");
	    lb_center_renctlyRead_center_book04_bookName.setFont(font13);
	    lb_center_renctlyRead_center_book04_bookName.setBounds((int)(jp_center_renctlyRead.getWidth()*0.02),(int)(jp_center_renctlyRead.getHeight()*0.9*0.55),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book04_bookName);

	    //作者
	    lb_center_renctlyRead_center_book04_bookAuthor=new JLabel("作者：方长");
	    lb_center_renctlyRead_center_book04_bookAuthor.setFont(font);
	    lb_center_renctlyRead_center_book04_bookAuthor.setBounds((int)(jp_center_renctlyRead.getWidth()*0.32),(int)(jp_center_renctlyRead.getHeight()*0.9*0.55),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book04_bookAuthor);
	    
	    //上次阅读到
	    lb_center_renctlyRead_center_book04_bookLastReading=new JLabel("上次阅读到：第1章 归乡");
	    lb_center_renctlyRead_center_book04_bookLastReading.setFont(font);
	    lb_center_renctlyRead_center_book04_bookLastReading.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book04_bookLastReading.setBounds((int)(jp_center_renctlyRead.getWidth()*0.55),(int)(jp_center_renctlyRead.getHeight()*0.9*0.55),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book04_bookLastReading);
	    
	    lb_center_renctlyRead_center_book04_bookLastReading.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //继续阅读
	    lb_center_renctlyRead_center_book04_bookContinueRead=new JLabel("继续阅读");
	    lb_center_renctlyRead_center_book04_bookContinueRead.setFont(font);
	    lb_center_renctlyRead_center_book04_bookContinueRead.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book04_bookContinueRead.setBounds((int)(jp_center_renctlyRead.getWidth()*0.9),(int)(jp_center_renctlyRead.getHeight()*0.9*0.55),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book04_bookContinueRead);
	    
	    lb_center_renctlyRead_center_book04_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //第五本书
	    //书名
	    lb_center_renctlyRead_center_book05_bookName=new JLabel("酒店秘事");
	    lb_center_renctlyRead_center_book05_bookName.setFont(font13);
	    lb_center_renctlyRead_center_book05_bookName.setBounds((int)(jp_center_renctlyRead.getWidth()*0.02),(int)(jp_center_renctlyRead.getHeight()*0.9*0.7),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book05_bookName);

	    //作者
	    lb_center_renctlyRead_center_book05_bookAuthor=new JLabel("作者：肥仔大圣");
	    lb_center_renctlyRead_center_book05_bookAuthor.setFont(font);
	    lb_center_renctlyRead_center_book05_bookAuthor.setBounds((int)(jp_center_renctlyRead.getWidth()*0.32),(int)(jp_center_renctlyRead.getHeight()*0.9*0.7),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book05_bookAuthor);
	    
	    //上次阅读到
	    lb_center_renctlyRead_center_book05_bookLastReading=new JLabel("上次阅读到：第1章 超模旅游团");
	    lb_center_renctlyRead_center_book05_bookLastReading.setFont(font);
	    lb_center_renctlyRead_center_book05_bookLastReading.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book05_bookLastReading.setBounds((int)(jp_center_renctlyRead.getWidth()*0.55),(int)(jp_center_renctlyRead.getHeight()*0.9*0.7),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book05_bookLastReading);
	    
	    lb_center_renctlyRead_center_book05_bookLastReading.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //继续阅读
	    lb_center_renctlyRead_center_book05_bookContinueRead=new JLabel("继续阅读");
	    lb_center_renctlyRead_center_book05_bookContinueRead.setFont(font);
	    lb_center_renctlyRead_center_book05_bookContinueRead.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book05_bookContinueRead.setBounds((int)(jp_center_renctlyRead.getWidth()*0.9),(int)(jp_center_renctlyRead.getHeight()*0.9*0.7),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book05_bookContinueRead);
	    
	    lb_center_renctlyRead_center_book05_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //第六本书
	    //书名
	    lb_center_renctlyRead_center_book06_bookName=new JLabel("极限狂飙");
	    lb_center_renctlyRead_center_book06_bookName.setFont(font13);
	    lb_center_renctlyRead_center_book06_bookName.setBounds((int)(jp_center_renctlyRead.getWidth()*0.02),(int)(jp_center_renctlyRead.getHeight()*0.9*0.85),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book06_bookName);

	    //作者
	    lb_center_renctlyRead_center_book06_bookAuthor=new JLabel("作者：奔腾286");
	    lb_center_renctlyRead_center_book06_bookAuthor.setFont(font);
	    lb_center_renctlyRead_center_book06_bookAuthor.setBounds((int)(jp_center_renctlyRead.getWidth()*0.32),(int)(jp_center_renctlyRead.getHeight()*0.9*0.85),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book06_bookAuthor);
	    
	    //上次阅读到
	    lb_center_renctlyRead_center_book06_bookLastReading=new JLabel("上次阅读到：神秘出租车");
	    lb_center_renctlyRead_center_book06_bookLastReading.setFont(font);
	    lb_center_renctlyRead_center_book06_bookLastReading.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book06_bookLastReading.setBounds((int)(jp_center_renctlyRead.getWidth()*0.55),(int)(jp_center_renctlyRead.getHeight()*0.9*0.85),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book06_bookLastReading);
	    
	    lb_center_renctlyRead_center_book06_bookLastReading.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //继续阅读
	    lb_center_renctlyRead_center_book06_bookContinueRead=new JLabel("继续阅读");
	    lb_center_renctlyRead_center_book06_bookContinueRead.setFont(font);
	    lb_center_renctlyRead_center_book06_bookContinueRead.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_center_renctlyRead_center_book06_bookContinueRead.setBounds((int)(jp_center_renctlyRead.getWidth()*0.9),(int)(jp_center_renctlyRead.getHeight()*0.9*0.85),300,30);
	    jp_center_renctlyRead_center.add(lb_center_renctlyRead_center_book06_bookContinueRead);

	    lb_center_renctlyRead_center_book06_bookContinueRead.addMouseListener(new MouseAdapter() {
	    	/**
	    	 * @param e
	    	 * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
	    	 */
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, flag, "我在缅甸挖矿那些年");
	    	}
		});
	    
	    //*********************最近阅读面板*************************
	    //*********************动态面板*************************
	    //动态面板
	    jp_center_dynamic=new JPanel();
	    jp_center_dynamic.setLayout(new BorderLayout());
	    jp_center_dynamic.setBounds((int)(width*0.252),jp_center_simpleMsg.getHeight()+jp_center_mylibrary.getHeight()+jp_center_renctlyRead.getHeight()+(int)(height*0.005*3),(int)(width*0.6), (int)(height*0.7));
	    jp_center_dynamic.setBorder(BorderFactory.createRaisedBevelBorder());
//	    jp_center_dynamic.setBackground(Color.black);
	    jp_center.add(jp_center_dynamic);
	    
	    //图片
	    ImageIcon dynamicImg=new ImageIcon(Person_center.class.getResource("./YFimg/动态面板.png"));
	    lb_center_dynamic_titleImg=new JLabel(dynamicImg);
	    dynamicImg.setImage(dynamicImg.getImage().getScaledInstance((int)(width*0.6), (int)(height*0.7), Image.SCALE_DEFAULT));
	    jp_center_dynamic.add(lb_center_dynamic_titleImg);
	    //*********************动态面板*************************
	    //*********************友情链接面板*************************
	    //友情链接
	    jp_center_link=new JPanel();
	    jp_center_link.setLayout(new BorderLayout());
	    jp_center_link.setBounds((int)(width*0.125),jp_center_simpleMsg.getHeight()+jp_center_mylibrary.getHeight()+jp_center_renctlyRead.getHeight()+jp_center_dynamic.getHeight()+(int)(height*0.005*4),(int)(width*0.727), (int)(height*0.15));
	    jp_center_link.setBorder(BorderFactory.createRaisedBevelBorder());
//	    jp_center_link.setBackground(Color.black);
	    jp_center.add(jp_center_link);
	    
	    //图片
	    ImageIcon linkImg=new ImageIcon(Person_center.class.getResource("./YFimg/友情链接.png"));
	    lb_center_link_titleImg=new JLabel(linkImg);
	    linkImg.setImage(linkImg.getImage().getScaledInstance((int)(width*0.727), (int)(height*0.15), Image.SCALE_DEFAULT));
	    jp_center_link.add(lb_center_link_titleImg);
	    //*********************友情链接面板*************************
	    
	    //==========================中部面板=================================
	    //==========================下部面板=================================
	    //下部面板
	    jp_south=new JPanel();
	    jp_south.setLayout(new BorderLayout());
//	    jp_south.setBackground(Color.black);
	    jp_south.setPreferredSize(new Dimension(0, (int)(height*0.27)));
		jp_all.add(BorderLayout.SOUTH,jp_south);
	    
	    //图片
		ImageIcon southImg=new ImageIcon(Person_center.class.getResource("./YFimg/最底下面板.png"));
		lb_south_titleImg=new JLabel(southImg);
//		southImg.setImage(southImg.getImage().getScaledInstance(width, (int)(jp_south.getPreferredSize().getHeight()), Image.SCALE_DEFAULT));
//		lb_south_titleImg.setVisible(false);
	    jp_south.add(lb_south_titleImg);
		
		
	    //==========================下部面板=================================
		//===================================================================
		
		jf.setSize(width,height);//设置大小
		jf.setVisible(true);
		jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		jf.setLocationRelativeTo(null);//居中
		
		
		
	}
	
			
	public void setBook(Book book ,JLabel object) {
		book.setBookname(object.getText());
//		book.set
	}		
	
	
			
	//sql="select * from book where bookname like '%?%' and order by id asc"升序	
	//SELECT * FROM book WHERE bookname LIKE '%巨鳄风暴%';
	//String sql ,Object ... params
	public Book searchbook(String sql, Object ...params ) {
		Book book=null;
//		sql= "SELECT * FROM book WHERE bookname LIKE '%?%'";
//		Object paramsq="%巨鳄风暴%";
		
		try {
			book=baseDao.findBean(Book.class,sql,params);
//			System.out.println(book);
		} catch (Exception e) {
			e.printStackTrace();
		}finally {
			try {
				baseDao.CloseConnection();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return book;
	}
	
	
	public static void main(String[] args) {
//		System.out.println("hello");
//		User user=new User();
		new Person_center(null,false);
//		Person_center person=new Person_center(null);
//		String sql="SELECT * FROM book WHERE bookname LIKE ?";
//		Object[] params={"%巨鳄风暴%"}; 
//		Book book=person.searchbook(sql, params);
//		System.out.println(book);
		
		
//		BaseDao baseDao=new BaseDao();
//		Book book=null;
//		String sql= "SELECT * FROM book WHERE bookname LIKE ?";
//		Object paramsq="%巨鳄风暴%";
//		Object str;
//		try {
//			str=baseDao.ColumnListHandler(Object.class, sql, "bookname",paramsq);
//			System.out.println(str);
//		} catch (Exception e) {
//			e.printStackTrace();
//		}finally {
//			try {
//				baseDao.CloseConnection();
//			} catch (Exception e) {
//				e.printStackTrace();
//			}
//		}
		
		
	}
}
